<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
     <%@page import="java.util.List"%>
<%@page import="java.util.ArrayList"%>
<%@page import="Entity.*"%>
<%@page import="Dao.*"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Insert title here</title>
</head>
<body>
<link rel="stylesheet"
		href="<%=request.getContextPath()%>/css/myRelease_teacher.css"
		type="text/css"></link>
		<jsp:useBean id="MyDownloadDao" class="Dao.MyDownloadDao"></jsp:useBean>
<a>我下载的资源</a>
<table class="dataintable">
<tr>
<td align="center">我的No</td>
<td align="center">资源ID</td>
<td align="center">标签</td>
<td align="center">资源名称</td>
<td align="center">上传者ID</td>
<td align="center">上传时间</td>
<td align="center">简介</td>
</tr>
<%
if(session.getAttribute("session_userName")!=null){
String myNo=session.getAttribute("session_userName").toString();
List<MyDownload> mdlist=new MyDownloadDao().queryAllDownloadByNo(myNo);
for(MyDownload mydownload:mdlist){
%>
<tr>
<td><input type="text" value=<%=mydownload.getMyNo() %> readonly></td>
<td><input type="text" value=<%=mydownload.getResourceID() %> readonly></td>
<td><input type="text" value=<%=mydownload.getLabel() %> readonly></td>
<td><input type="text" value=<%=mydownload.getResourceName() %> readonly></td>
<td><input type="text" value=<%=mydownload.getUploaderID() %> readonly></td>
<td><input type="text" value=<%=mydownload.getUploadTime() %> readonly></td>
<td><input type="text" value=<%=mydownload.getBriefIntroduce() %> readonly></td>
<%
}}
%>
</table>
</body>
</html>